# coding: utf-8
from enum import Enum

from qfluentwidgets import FluentIconBase, Theme, getIconColor


class Icon(FluentIconBase, Enum):
    Collect = 'collect'
    CollectFull = 'collect_full'

    def path(self, theme=Theme.AUTO):
        return f'resource/icons/svg/{self.value}_{getIconColor(theme)}.svg'


class NavigationIcon(FluentIconBase, Enum):
    Card = 'card'
    Heart = 'Heart'
    History = 'History'
    Library = 'library'
    Menu = 'menu'
    Plus = 'plus'
    Statistics = 'statistics'

    def path(self, theme=Theme.AUTO) -> str:
        return f'resource/icons/navigation/{self.value}.svg'


class OthersIcon(FluentIconBase, Enum):
    Loading = 'Loading.svg'
    ImageLose = 'ImageLose.svg'
    Default = 'default.jpg'
    Default1 = 'default1.png'
    Default2 = 'default2.png'
    Default3 = 'default3.png'
    Default4 = 'default4.png'
    Default5 = 'default5.png'

    def path(self, theme=Theme.AUTO) -> str:
        return f'resource/icons/others/{self.value}'
